package ys.demo1.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//读取自定义配置的第一种方式
@Data
@Component
@ConfigurationProperties(prefix="aliyun")
public class AliYunProperties {

    private String username;

    private String ip;

}
